STEP 3: The inner loop creates a horizontal line of bricks, so we must change the x-coordinate with every brick!

  • In LOGIC from drag out a Add Value into the inner loop (indented twice total!).
  • Change my_var to x and 1 to 55. This will space the bricks 5 pixels apart! (Each brick is 50 pixels wide)
  • From add Append into the inner loop.
  • Change the list to bricks and change the argument to sprite. This adds each brick to the list!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)